$.messager.model = { 
    ok:{ text: "关闭", classed: 'btn btn-success' },
    cancel: { text: "取消", classed: 'btn btn-primary' }
};

var Loading = {
		show: function() {
			var html = "<div id='loadingDiv'>";
			html = html + "<div class='loading-back'></div>";
			html = html + "<div class='loading'><i class='fa fa-spinner fa-pulse fa-3x'></i>&nbsp;正在等待返回结果，请稍后...</div>";
			html = html + "</div>";
			var o = $("#loadingDiv");
			if (o.length < 1) {
				$("body").prepend(html);
				o = $("#loadingDiv");
			}
			o.show();
		},
		hide: function() {
			$("#loadingDiv").hide();
		}
};